import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';

/**
 * 会邦云
 */
const productManage: AppRouteModule = {
  path: '/hby',
  name: 'hby',
  component: LAYOUT,
  redirect: '/hby',
  meta: {
    orderNo: 11,
    icon: 'carbon:version',
    title: '会邦云',
  },
  children: [
    {
      path: 'intendedMembers',
      name: 'intendedMembers',
      component: () => import('@/views/hby/intendedMembers/index.vue'),
      meta: {
        title: '联盟意向收集',
      },
    },
    {
      path: 'merchantPlatform',
      name: 'merchantPlatform',
      component: () => import('@/views/hby/merchantPlatform/index.vue'),
      meta: {
        title: '商户平台管理',
        hideChildrenInMenu: true,
      },
      children: [
        {
          path: 'memberMerchantNo',
          name: 'memberMerchantNo',
          component: () => import('@/views/hby/merchantPlatform/memberMerchantNo/index.vue'),
          meta: {
            title: '会员商户号',
            hideBreadcrumb: true,
            hideMenu: true,
          },
        },
      ],
    },
    {
      path: 'productManage',
      name: 'productManage',
      component: () => import('@/views/hby/productManage/index.vue'),
      meta: {
        title: '产品管理',
      },
    },
    {
      path: 'orderSettlement',
      name: 'orderSettlement',
      component: () => import('@/views/hby/orderSettlement/index.vue'),
      meta: {
        title: '订单结算',
        hideChildrenInMenu: true,
      },
      children: [
        {
          path: 'detail',
          name: 'detail',
          component: () => import('@/views/hby/orderSettlement/detail/index.vue'),
          meta: {
            title: '结算详情',
            hideBreadcrumb: true,
            hideMenu: true,
          },
        },
      ],
    },

    {
      path: 'categoryManagement',
      name: 'CategoryManagement',
      meta: {
        title: '类目管理',
      },
      children: [
        {
          path: 'productCategories',
          name: 'ProductCategories',
          component: () => import('@/views/hby/categoryManagement/productCategories/index.vue'),
          meta: {
            title: '产品类目',
          },
        },
        {
          path: 'brandStoreOperatingCategories',
          name: 'BrandStoreOperatingCategories',
          component: () =>
            import('@/views/hby/categoryManagement/brandStoreOperatingCategories/index.vue'),
          meta: {
            title: '品牌门店经营类目',
          },
        },
      ],
    },

    {
      path: 'resourceLeague',
      name: 'resourceLeague',
      component: () => import('@/views/hby/resourceLeague/index.vue'),
      meta: { title: '资源联盟',hideChildrenInMenu: true },
      children: [
        {
          path: 'promotionSet',
          name: 'promotionSet',
          component: () => import('@/views/hby/resourceLeague/productLibrary/promotionSet.vue'),
          meta: {
            title: '联盟产品库(推广设置)',
            hideBreadcrumb: true,
            hideMenu: true,
          },
        },
        {
          path: 'plateSet', 
          name: 'plateSet',
          component: () => import('@/views/hby/resourceLeague/selectedPlate/plateSet.vue'),
          meta: {
            title: '精选板块管理(板块配置)',
            hideBreadcrumb: true,
            hideMenu: true,
          },
        },
      ],
    },
  ],
};

export default productManage;
